﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EntityComponentSystem.Framework;
using EntityComponentSystem.Framework.Math;

namespace EntityComponentSystem.Demos.SpaceAttack.Components
{
    //public interface IVelocityComponent : IComponent
    //{
    //    IVector3d Velocity { get; set; }
    //}

    public class VelocityComponent : Component<Vector2>//, IVelocityComponent
    {        
        protected override void OnInit()
        {
            base.OnInit();
            Value = new Vector2(1, 1);
        }

        public void SetVelocity(Vector2 amount)
        {
            Value = amount;
        }
    }
}
